import Vue from 'vue'

import app from './App.vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)
import router from './router.js'
import VueResource from 'vue-resource'
Vue.use(VueResource)

import { Header,Swipe, SwipeItem,Button } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
import './lib/mul/css/mui.min.css'
import './lib/mul/css/icons-extra.css'

//这里是 moment 格式化时间 定义一个 全局的过滤器 需要安装 npm install moment
import moment from 'moment'
Vue.filter('dateFormat',function (dataStr,pattern = 'YYYY-MM-DD HH:MM:ss') {
   return moment(dataStr).format(pattern);
})


var vm = new Vue({
    el:"#app",
    render: c => c(app),
    router
})